'use strict'

const path = require('path')
const util = require('./libs/util')

const wechat_file = path.join(__dirname, './config/wechat.txt')

const config = {
  wechat: {
    appID: 'wxe3095af1518dfa0f',
    appSecret: '001528022bd86ef75ff7d0e98379be12',
    token: 'lupanceshi',
    getAccessToken: function () {
      return util.readFileAsync(wechat_file, 'utf-8')
    },
    saveAccessToken: function (data) {
      return util.writeFileAsync(wechat_file, data)
    }
  }
}

module.exports = config